package com.bawan.utils;

import com.bawan.model.ResponseModel;

import java.util.Comparator;

/**
 * Desc:  ${TODO}
 * Author: zhengcongchun
 * CreateTime: 2014-04-04 11:05
 * LastModifyTime: 2014-04-04 11:05
 * FinalModifier: zhengcongchun
 * Version: 1.0
 */
public class ComparatorUtil implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        ResponseModel m1 = (ResponseModel)o1;
        ResponseModel m2 = (ResponseModel)o2;
        return m2.getStatusCode().compareTo(m1.getStatusCode());
//        if (m1.getStatusCode() > m2.getStatusCode()) {
//            return 1;
//        }
//        return 0;
    }
}
